<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title>
    <style type="text/css">
*{margin: 0;padding: 0;list-style: none;}
#div1{
	width: 200px;height: 200px;background:black;position: absolute;left: 50%;top: 50%;margin: -100px 0 0 -100px;
	transform:perspective(800px);
	transition:1s transform ease;
}

#div1:active{
	transform:rotateX(-180deg);
}

    </style> 
</head>
<body>

<div id='div1'></div>
</body>
</html>